package com.wzk.dwetl

import org.apache.spark.sql.SparkSession

object AttributeAnalysis {
  def main(args: Array[String]): Unit = {
    val spark = SparkSession
      .builder()
      .appName(this.getClass.getSimpleName)
      .master("local[*]")
      .enableHiveSupport()
      .getOrCreate()

    import org.apache.spark.sql.functions._
    import spark.implicits._

    val demo = spark.read.table("test.attribute_demo")

    demo.where('eventid.isin("e1","e3"))
  }
}
